package zhtt01.controller;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ImportResource;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by zhtt on 2016/10/30.
 */
@RestController
@RequestMapping("/user1")

//@EnableAutoConfiguration
//@ImportResource("classpath:applicationContext.xml")
public class User01Controller {

    @RequestMapping("/{id}")
    private String view(@PathVariable("id") String id) {
        return id;
    }

    /*public static void main(String[] args) {
        SpringApplication.run(User01Controller.class);
    }*/
}
